package com.etoak.car.mapper;


import com.etoak.car.bean.Car;
import com.etoak.car.bean.Types;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface CarMapper {


    List<Car> queryList(@Param("name") String name);

    List<Types> queryCarType();

    int addCar(Car car);

    int addType(String name, String status);

    int delType(int typeId);

    int updateType(int id, String name, String status);

    

    Car queryCarById(String carId);

    int updateCar(Car car);

    int delCar(String id);
}
